# -*- coding: utf-8 -*-
__author__ = 'lychiyu'
__date__ = '17-9-10 下午2:57'

from django.conf.urls import url
from .views import UserInfoView, UploadImageView, UpdatePwdView, SendEmailCodeView, UpdateEmailView, MyCourseView
from .views import MyFavOrgView, MyFavTeacherView, MyFavCourseView, MyMessageView

urlpatterns = [
    # 用户信息
    url(r'^info/$', UserInfoView.as_view(), name='info'),
    # 用户头像上传
    url(r'^image/upload/$', UploadImageView.as_view(), name='image_upload'),
    # 用户个人中心修改面膜
    url(r'^update/pwd/$', UpdatePwdView.as_view(), name='update_pwd'),
    # 向邮箱发生验证码
    url(r'^sendemail_code/$', SendEmailCodeView.as_view(), name='sendemail_code'),
    # 修改邮箱
    url(r'^update_email/$', UpdateEmailView.as_view(), name='update_email'),
    # 我的课程
    url(r'^mycourse/$', MyCourseView.as_view(), name='mycourse'),
    # 我的收藏的课程机构
    url(r'^myfav_org/$', MyFavOrgView.as_view(), name='myfav_org'),
    # 我的收藏的讲师
    url(r'^myfav_teacher/$', MyFavTeacherView.as_view(), name='myfav_teacher'),
    # 我的收藏的课程
    url(r'^myfav_course/$', MyFavCourseView.as_view(), name='myfav_course'),
    # 我的消息
    url(r'^mymessage/$', MyMessageView.as_view(), name='mymessage'),
]
